/* 
 * File:   m_logs.h
 * Author: chao
 *
 * Created on 2013年6月12日, 下午6:54
 */

#ifndef M_LOGS_H
#define	M_LOGS_H

#ifdef	__cplusplus
extern "C" {
#endif


#define LOG_ERROR 1
#define LOG_WARN 2
#define LOG_DEBUG 4
#define LOG_ALL 8

#if 0
    typedef struct _mlog mlog;

    struct _mlog {
        short log_type;
        char file_name[0x100]; /* Linux file name max length is 255 bytes */
        mlog *next;
    };
#endif 

    /* initialize logs */
    int m_log_init(void);
    void m_log(int log_level, const char *fmt, ...);


#ifdef	__cplusplus
}
#endif

#endif	/* M_LOGS_H */

